package com.dongnam.quanly.common;

import java.util.ArrayList;
import java.util.List;

public enum ObjectType {
	User("ConsoleUser"), UserGroup("UserGroup"), UserRole("UserRole"), UserRight("UserRight"), BlackListOper(
			"BlackListOper"), BlackListApn("BlackListApn"), SMSTemplates("SMSTemplates");

	public String className;

	private ObjectType(String className) {
		this.className = className;
	}

	public static List<ObjectType> getEnum(String className) {
		List<ObjectType> list = new ArrayList<ObjectType>();
		for (ObjectType option : ObjectType.values()) {
			if (option.className.equals(className)) {
				list.add(option);
			}
		}
		return list;
	}
}
